package cn.hqc.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;

import cn.hqc.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author itsource
 * @since 2023-04-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Shop extends BaseDomain {

    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="电话", orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name="创建", orderNum = "3", width = 30, isImportField = "true_st", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime ;
    /**
     * 店铺状态：0待审核，1.审核通过，2.审核驳回，3.已激活
     */
    @Excel(name="状态", replace = {"待审核_0","已审核_1","驳回_2","已激活_3"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state;
    @Excel(name="地址", orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name="店铺Logo", orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;

    private Long adminId;

    private Employee employee;

    private List<ShopAuditLog> auditLogs;

}
